package com.aiex.framework.db.config.base;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import lombok.Data;

import java.util.Date;

@Data
public class BaseDO {

    /**
     * 主键
     */
    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 创建时间
     */
    @Column(onInsertValue = "now()")
    private Date createTime;
    /**
     * 修改时间
     */
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date modifyTime;
    /**
     * 创建人工号
     */
    private Long createBy;
    /**
     * 修改人工号
     */
    private Long modifyBy;
    /**
     * 删除标记
     */
    @Column(isLogicDelete = true)
    private Boolean deleted;


}
